public class City extends Person{
    public String cityName;

    public City(String name, int age, String sex, String cityName) {
        super(name, age, sex);
        this.cityName = cityName;
    }

    public City(Person person, String cityName) {
        super(person);
        this.cityName = cityName;
    }

    public City(String cityName) {
        this.cityName = cityName;
    }

    @Override
    public void showInFor() {
        System.out.println(name+" "+age+" "+sex+" "+cityName);
    }
}
